package com.example.vue20220225.service;

import com.example.vue20220225.model.CheckPower;
import com.example.vue20220225.model.Power;
import com.example.vue20220225.model.Role;
import com.example.vue20220225.model.UserInfo;

import java.util.Map;

// 权限服务类
public interface RoleService {

    Map<String, Object> add(Role role);

    Map<String, Object> editrole(Role role);

    Map<String, Object> deleterole(Integer roleId);

    Map<String, Object> powerselectlist(Integer roleId);

    Map<String, Object> editpowerist(CheckPower checkPower);
}


//    select p.power_id,p.power_name,s.power_id,s.power_name,if(isnull(s.power_id),0,1) from power p
//        left join (select p1.* from role_power rp INNER JOIN power p1 on p1.power_id = rp.power_id where rp.role_id = 2) s
//        on p.power_id = s.power_id